import 'package:json_annotation/json_annotation.dart';

part 'store_pin_gou.g.dart';

@JsonSerializable()
class StorePinGou {
  final int groupPurchaseTeamId; // 12239,
  final double productPrice; // 1000.0,
  final String priceAccountType; // "GROUP_PURCHASE_COIN",
  final int groupPurchaseParamId; // null,
  final String businessType; // "EJL_PG",
  final String teamCode; // "PG_20201118095400_0578",
  final DateTime startTime; // "2020-11-18 09:54:00",
  final int maxTimeLen; // 1,
  final bool refresh;

  StorePinGou(
    this.groupPurchaseTeamId,
    this.productPrice,
    this.priceAccountType,
    this.groupPurchaseParamId,
    this.businessType,
    this.teamCode,
    this.startTime,
    this.maxTimeLen,
    this.refresh,
  );

  factory StorePinGou.fromJson(Map<String, dynamic> json) => _$StorePinGouFromJson(json);

  Map<String, dynamic> toJson() => _$StorePinGouToJson(this);
}
